using System;
using NCommet.Core;
using NCommet.Core.Agents;

namespace NCommet.Modules.TypedTreeValidatorTest
{
    /// <summary>
    /// Content class for a post pertaining to news.
    /// </summary>
    [Serializable]
    public class NewsPost : ContentBase
    {

        private string title;

        /// <summary>
        /// The title of the <see cref="NCommet.Modules.TypedTreeValidatorTest.NewsPost"/>.
        /// </summary>
        /// <remarks>
        /// The property has been decorated with the <see cref="NCommet.Core.IndexableAttribute"/> with a key value of 1.
        /// </remarks>
        [Indexable(1)]
        public virtual string Title
        {
            get { return title; }
            set { title = value; }
        }

        private string body;

        /// <summary>
        /// The HTML body of the <see cref="NCommet.Modules.TypedTreeValidatorTest.NewsPost"/>.
        /// </summary>
        public virtual string Body
        {
            get { return body; }
            set { body = value; }
        }

    }
}
